<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        /* 悬停 */
        button:hover{
            font-size: 24px;
            background-color: pink;
        }
        /* 按下 */
        button:active{
            background-color: red;
            font-size: 40px;
        }
    </style>
</head>
<body>
    <button>点我试试</button>
    
</body>
</html>